<template>
  <div class="app-container">
    <template v-if="adminInfo.type==3">
      <supplier />
    </template>
    <template v-else>
      <admin />
    </template>
  </div>
</template>
<script>
import { mapGetters } from 'vuex'
import admin from './components/admin.vue'
import supplier from './components/supplier.vue'
export default {
  name: 'Dashboard',
  components: {
    admin,
    supplier
  },
  data() {
    return {

    }
  },
  computed: {
    ...mapGetters(['roleRoutes', 'adminInfo'])
  },
  created() {
    // this.loading = true;
  },
  methods: {

  }
}
</script>
<style lang="scss">
.card-panel {
  .el-skeleton {
    padding: 10px;

    .el-skeleton__item {
      height: 12px;
    }

    .el-skeleton__paragraph {
      margin-top: 10px;
    }
  }
}
</style>

<style lang="scss" scoped>
  .el-row{

  }
  .app-container {

  }

</style>
